-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add support for LLM routing using developer preferences #6075
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
ping @mrubens |
Thanks, will look soon! |
Hey @daniel-lxs I’ve been talking to them about this one - will take a look tonight. |
"archgwPreferenceConfigDesc": "確保模型 ID 存在於您的 arch gateway 配置中。", | ||
"invalidRoutingConfig": "無效的路由配置格式。", | ||
"routingConfig": "路由配置", | ||
"usePreferenceBasedRouting": "使用基于偏好的路由", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typographical consistency: The value for "usePreferenceBasedRouting" uses simplified Chinese character '基于'. For consistency with other entries which use Traditional Chinese (e.g., '基於'), this should be updated to "使用基於偏好的路由".
"usePreferenceBasedRouting": "使用基于偏好的路由", | |
"usePreferenceBasedRouting": "使用基於偏好的路由", |
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
Related GitHub Issue
Closes: #5362
Roo Code Task Context (Optional)
Description
This change adds support for archgw router. This gateway allows developers to choose between models based on developer preferences.
This PR is influenced from Lite-LLM PR #3242
Test Procedure
$ cd demos/use_cases/preference_based_routing $ archgw up --service archgw --foreground 2025-07-22 12:29:00,763 - cli.main - INFO - Starting archgw cli version: 0.3.5 2025-07-22 12:29:00,763 - cli.main - INFO - Validating /Users/adilhafeez/src/intelligent-prompt-gateway/demos/use_cases/preference_based_routing/arch_config.yaml 2025-07-22 12:29:01,845 - cli.core - INFO - Starting arch gateway, image name: archgw, tag: katanemo/archgw:0.3.5 ... [2025-07-22 19:29:05.909][66][debug][wasm] [source/extensions/common/wasm/wasm.cc:100] Thread-Local Wasm created 24 now active
At this point you are ready. Fire away your queries and see arch router use dynamic models based on query type.
Pre-Submission Checklist
Screenshots / Videos
Video screenshot - reddit post
Documentation Updates
Does this PR necessitate updates to user-facing documentation?
RooCodeInc/Roo-Code-Docs#262
Additional Notes
Get in Touch
@mrubens
Important
Adds support for ArchGW routing using developer preferences, including YAML validation and tests.
archgw
routing using developer preferences invalidate.ts
.validateArchGwPreferenceConfig()
for YAML validation of routing preferences.validateModelId()
andgetModelIdForProvider()
to includearchgw
.archgw
tovalidateModelsAndKeysProvided()
for API key validation.archgw
model validation invalidate.test.ts
.validateArchGwPreferenceConfig()
for YAML schema validation.archgw
.This description was created by
for 4ad271f. You can customize this summary. It will automatically update as commits are pushed.